home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / frontend / flyEditor / flyRenderView.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-03-31  |  2.2 KB  |  73 lines

  1. #if !defined(AFX_FLYRENDERVIEW_H__EDE386E0_B9BB_11D2_9263_0080AD426F27__INCLUDED_)
  2. #define AFX_FLYRENDERVIEW_H__EDE386E0_B9BB_11D2_9263_0080AD426F27__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // flyRenderView.h : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CFlyRenderView view
  12.  
  13. class CFlyRenderView : public CView
  14. {
  15. protected:
  16.     CFlyRenderView();           // protected constructor used by dynamic creation
  17.     DECLARE_DYNCREATE(CFlyRenderView)
  18.  
  19. // Attributes
  20. public:
  21.     int timer,render_type,flag;
  22.     mat4x4 rot;
  23.     int mouse;
  24.     CPoint mousepoint;
  25.  
  26. // Operations
  27. public:
  28.     void DrawObject(char *name);
  29.     void DrawObject(bsp_object *obj);
  30.     void DrawPicture(CDC* pDC,unsigned char *buf,int sx,int sy,int bytespixel);
  31.     CFlyEditorDoc* GetDocument();
  32.  
  33. // Overrides
  34.     // ClassWizard generated virtual function overrides
  35.     //{{AFX_VIRTUAL(CFlyRenderView)
  36.     protected:
  37.     virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  38.     virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  39.     //}}AFX_VIRTUAL
  40.  
  41. // Implementation
  42. protected:
  43.     virtual ~CFlyRenderView();
  44. #ifdef _DEBUG
  45.     virtual void AssertValid() const;
  46.     virtual void Dump(CDumpContext& dc) const;
  47. #endif
  48.  
  49.     // Generated message map functions
  50. protected:
  51.     //{{AFX_MSG(CFlyRenderView)
  52.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  53.     afx_msg void OnDestroy();
  54.     afx_msg void OnSize(UINT nType, int cx, int cy);
  55.     afx_msg void OnTimer(UINT nIDEvent);
  56.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  57.     afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  58.     afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
  59.     afx_msg void OnMouseMove(UINT nFlags, CPoint point);
  60.     afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
  61.     afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
  62.     afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
  63.     //}}AFX_MSG
  64.     DECLARE_MESSAGE_MAP()
  65. };
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68.  
  69. //{{AFX_INSERT_LOCATION}}
  70. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  71.  
  72. #endif // !defined(AFX_FLYRENDERVIEW_H__EDE386E0_B9BB_11D2_9263_0080AD426F27__INCLUDED_)
  73.